﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Harrby.Web.Profile;
using System.Web.Security;

namespace Harrby.Web.WebApplication
{
    public partial class _Default : Harrby.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //Membership.CreateUser("Administrator", "123456Aa");
            UserProfile pc = UserProfile.GetProfile("Administrator");
            pc.User.FirstName = "Suleyman";
            pc.User.FamilyName = "Ozturk";
            pc.AddressCollection.Add(new Address() { AddressDescription = "A", AddressType = AddressTypes.Home, City = "B", Country = "C", ZipCode = "15100", Region = "Europa" });
            pc.AddressCollection.Add(new Address() { AddressDescription = "E", AddressType = AddressTypes.Company, City = "E", Country = "D", ZipCode = "07100", Region = "Asia" });
            pc.EmailCollection.Add(new Email() { EmailAddress = "sozturk@msn.com" });
            pc.EmailCollection.Add(new Email() { EmailAddress = "ozturksuleyman@msn.com" });
            pc.Save();
            //string s = this.RouteData.Values["Harrby"].ToString() + "Ama .NET 3.5";
        }
    }
}
